(function($){
    $(document).ready(function () {
        /*模板引擎设置*/
        _.templateSettings = {
            interpolate: /\{\{(.+?)\}\}/g
        };

        var model=new Backbone.Model({
            firstName:"jenking",
            lastName:"Doe",
            age:"20"
        });

        model.on("change",function(model){
            console.log("change it",model.get("firstName"));

        });

        model.set("firstName","wong",{silent:true});

        console.log(model.hasChanged("firstName"));
        //console.log(JSON.stringify(model.previousAttributes()));

        console.log(model.get("firstName"));

    });
})(jQuery);